package top.lyunk.demo.es;

import com.github.javafaker.Faker;

import java.util.Arrays;
import java.util.Locale;

public class Fakers {
    static Faker faker = new Faker(Locale.CHINA);

    public static String[] names(int n) {
        String[] str = new String[n];
        for (int i = 0; i < n; i++) {
            str[i] = faker.name().name();
        }
        return str;
    }

    public static String[] gj(int n) {
        String[] str = new String[n];
        for (int i = 0; i < n; i++) {
            str[i] = faker.country().name();
        }
        return str;
    }

    public static String[] zw(int n) {
        String[] str = new String[n];
        for (int i = 0; i < n; i++) {
            str[i] = faker.job().title();
        }
        return str;
    }

    public static void main(String[] args) {
        System.out.println(Arrays.toString(names(5)));
        System.out.println(Arrays.toString(gj(5)));
        System.out.println(Arrays.toString(zw(5)));
    }
}
